From 2fa391823baa5055b180d947879f4d7cde71e6ea Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 19 Dec 2007 09:51:35 +0000 Subject: [PATCH] xentrace: Ensure virq gets sent even if we exactly hit the half water mark. Signed-off-by: Keir Fraser --- xen/common/trace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/common/trace.c b/xen/common/trace.c index bf1d1fe7fa..9af70798bb 100644 --- a/xen/common/trace.c +++ b/xen/common/trace.c @@ -485,8 +485,8 @@ void __trace_var(u32 event, int cycles, int extra, unsigned char *extra_data) local_irq_restore(flags); /* Notify trace buffer consumer that we've crossed the high water mark. */ - if ( started_below_highwater - && ((buf->prod - buf->cons) > t_buf_highwater) ) + if ( started_below_highwater && + ((buf->prod - buf->cons) >= t_buf_highwater) ) raise_softirq(TRACE_SOFTIRQ); } -- 2.30.2